/**
 * @Description TODO
 * @Author hhy
 * @Date 2020/9/21 16:15
 */
public class Main {
    public static void main(String[] args) {


        //创建英雄
        Hero hero = new Hero();
        //创建怪物
        Monster monster = new Monster();
        monster.setName("绯红印记树怪");
        monster.setLevel(100);
        monster.setHp(monster.getLevel()*1000);
        hero.setName("盖伦");
        hero.setPower(666);
        hero.setLevel(17);


        //直接a死怪
        while (monster.getHp()>=0){
            hero.a(monster);
        }
        hero.setExperience(hero.getExperience()+999);
        hero.setLevel(hero.getLevel()+1);

        System.out.println(hero.getName()+"的等级是"+hero.getLevel()+"\n经验是"+hero.getExperience());

    }
}
